import request from '@/utils/request'

// 查询人员彩超图片存储列表
export function listPersonFileImgs(query) {
  return request({
    url: '/person/personFileImgs/list',
    method: 'get',
    params: query
  })
}

// 查询人员彩超图片存储详细
export function getPersonFileImgs(id) {
  return request({
    url: '/person/personFileImgs/' + id,
    method: 'get'
  })
}

// 新增人员彩超图片存储
export function addPersonFileImgs(data) {
  return request({
    url: '/person/personFileImgs',
    method: 'post',
    data: data
  })
}

// 修改人员彩超图片存储
export function updatePersonFileImgs(data) {
  return request({
    url: '/person/personFileImgs',
    method: 'put',
    data: data
  })
}

// 删除人员彩超图片存储
export function delPersonFileImgs(id) {
  return request({
    url: '/person/personFileImgs/' + id,
    method: 'delete'
  })
}

// 导出人员彩超图片存储
export function queryImg(personId) {
  return request({
    url: '/person/personFileImgs/queryImg/' + personId,
    method: 'get'
  })
}
